// File : Timer.h
//
#ifndef __Timer
#define __Timer
//
#include "pRTOS.h"
#include "TimerListener.h"
//
class Timer : public cTimer {
public:

   // constructor:
   Timer (void) : client (0) { }

   // public operations:
   void set (unsigned long time, TimerListener * cl) {
      cTimer::set (time);
      client = cl;
   }

   void timeUp (void) {
      client->timeout (this);
   }

private:
   TimerListener * client;
};

#endif
